package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * @author eason
 * @ClassName: TravelTable
 * @Description: 旅游表(游学)定义表
 * @date 2016-11-02 15:02:37
 */
@Entity
@Table(name = "tb_xa_traveltable")
@ApiModel(value = "旅游表(游学)定义表")
public class TravelTable extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目名称(50),项目名称")
    private String travelItemName;
    @ApiModelProperty(value = "简介,简介")
    private String travelBrief;
    @ApiModelProperty(value = "项目价格,项目价格")
    private Double travelItemPrice;
    @ApiModelProperty(value = "项目地址,Travel-ItemAddress")
    private String travelItemAddress;
    @ApiModelProperty(value = "经度,经度")
    private Double lng;
    @ApiModelProperty(value = "维度,维度")
    private Double lat;
    @ApiModelProperty(value = "联系电话,联系电话")
    private String travelItemTelephone;
    @ApiModelProperty(value = "项目种类（1：国内 2:国外）,1：国内 2:国外；（默认国内1）")
    private Integer travelItemType;
    @ApiModelProperty(value = "行程说明（富文本）,行程说明")
    private String route;
    @ApiModelProperty(value = "费用须知（富文本）,旅游费用说明；")
    private String cost;
    @ApiModelProperty(value = "标语,标语")
    private String slogan;
    @ApiModelProperty(value = "点击量,点击量")
    private Long clickCont;
    @ApiModelProperty(value="排序值,排序值")
    private Long sort;
	@ApiModelProperty(value="最低组团人数,最低组团人数")
	private Integer minGroupPeople;
	@ApiModelProperty(value="预计出发日期,预计出发日期 yyyy-mm-dd  <选填>")
	private String planStartTime;
	@ApiModelProperty(value="预订价格 ,预订价格 ")
	private Double reservationPrice;

    public static final long SORT_DEFAULT = 9999999L;

    public TravelTable() {
	}

    public void setTravelItemName(String travelItemName) {
        this.travelItemName = travelItemName;
    }

    @Column(nullable = true, length = 50)
    public String getTravelItemName() {
        return travelItemName;
    }

    public void setTravelBrief(String travelBrief) {
        this.travelBrief = travelBrief;
    }

    @Column(nullable = true, length = 5000, columnDefinition = "MEDIUMTEXT")
    public String getTravelBrief() {
        return travelBrief;
    }

    public void setTravelItemPrice(Double travelItemPrice) {
        this.travelItemPrice = travelItemPrice;
    }

    @Column(nullable = true, length = 50)
    public Double getTravelItemPrice() {
        return travelItemPrice;
    }

    public void setTravelItemAddress(String travelItemAddress) {
        this.travelItemAddress = travelItemAddress;
    }

    @Column(nullable = true, length = 250)
    public String getTravelItemAddress() {
        return travelItemAddress;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    @Column(nullable = true, length = 50)
    public Double getLng() {
        return lng;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    @Column(nullable = true, length = 50)
    public Double getLat() {
        return lat;
    }

    public void setTravelItemTelephone(String travelItemTelephone) {
        this.travelItemTelephone = travelItemTelephone;
    }

    @Column(nullable = true, length = 50)
    public String getTravelItemTelephone() {
        return travelItemTelephone;
    }

    public void setTravelItemType(Integer travelItemType) {
        this.travelItemType = travelItemType;
    }

    @Column(nullable = true, length = 50)
    public Integer getTravelItemType() {
        return travelItemType;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    @Column(nullable = true, length = 5000, columnDefinition = "MEDIUMTEXT")
    public String getRoute() {
        return route;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    @Column(nullable = true, length = 2000, columnDefinition = "MEDIUMTEXT")
    public String getCost() {
        return cost;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    @Column(nullable = true, length = 255)
    public String getSlogan() {
        return slogan;
    }

    @Column(nullable = true, length = 50)
    public Long getClickCont() {
        return clickCont;
    }

    public void setClickCont(Long clickCont) {
        this.clickCont = clickCont;
    }

    @Column(nullable = true, length = 50)
    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }
    
	public void setMinGroupPeople(Integer minGroupPeople){
		this.minGroupPeople=minGroupPeople;
	}
	
	@Column(nullable=true,length=255)
	public Integer getMinGroupPeople(){
		return minGroupPeople;
	}
	public void setPlanStartTime(String planStartTime){
		this.planStartTime=planStartTime;
	}
	
	@Column(nullable=true,length=255)
	public String getPlanStartTime(){
		return planStartTime;
	}
	public void setReservationPrice(Double reservationPrice){
		this.reservationPrice=reservationPrice;
	}
	
	@Column(nullable=true,length=255)
	public Double getReservationPrice(){
		return reservationPrice;
	}

    @Override
    public void setInsertBefore() {
        super.setInsertBefore();
        if (sort == null) {
            sort = SORT_DEFAULT;//排序默认值
        }
    }

}
